package com.jingdianjichi.auth.application.convert;



import com.jingdianjichi.auth.domain.entity.AuthUserBO;
import com.jingdianjichi.auth.entity.AuthUserDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 用户dto转换器
 */
@Mapper
public interface AuthUserDTOConverter {
    AuthUserDTOConverter INSTANCE =Mappers.getMapper(AuthUserDTOConverter.class);

    //DTO 转为BO
    AuthUserBO convertDTOToBo(AuthUserDTO authUserDTO);

    //BO 转为DTO
    AuthUserDTO convertBoToDto(AuthUserBO authUserBO);

    List<AuthUserDTO> convertBOToDTO(List<AuthUserBO> authUserBO);







}
